% latex table generated in R 4.4.0 by xtable 1.8-4 package
% Thu Apr 10 09:25:46 2025
\begin{table}[ht]
\centering
\scalebox{0.55}{
\begin{tabular}{rrrrrrrrrrrrrr}
  \hline
 & Trump '16 & Cruz '16 & Rubio '16 & Carson '16 & Moore '17 & Strange '17 & Brooks '17 & Sessions '20 & Tuberville '20 & Bryne '20 & Brooks '22 & Britt '22 & Durant '22 \\ 
  \hline
Shelby '16 & 0.199 & 0.099 & -0.083 & \cellcolor{gray!30}-0.231 & 0.199 & 0.011 & \cellcolor{gray!30}-0.289 & -0.037 & \cellcolor{gray!30}-0.246 & \cellcolor{gray!80}0.277 & -0.131 & 0.174 & -0.106 \\ 
  McConnel '16 & -0.180 & 0.019 & 0.143 & 0.010 & \cellcolor{gray!30}-0.212 & -0.010 & \cellcolor{gray!80}0.286 & 0.049 & \cellcolor{gray!80}0.202 & -0.184 & 0.155 & -0.144 & 0.097 \\ 
  Trump '16 & 1.000 & -0.400 & \cellcolor{gray!60}-0.580 & \cellcolor{gray!30}-0.322 & 0.156 & -0.063 & \cellcolor{gray!30}-0.277 & -0.175 & 0.012 & 0.085 & -0.039 & -0.042 & 0.135 \\ 
  Cruz '16 & -0.400 & 1.000 & -0.173 & -0.156 & 0.118 & -0.064 & -0.046 & -0.018 & 0.016 & -0.019 & 0.149 & -0.075 & -0.028 \\ 
  Rubio '16 & \cellcolor{gray!60}-0.580 & -0.173 & 1.000 & -0.089 & \cellcolor{gray!30}-0.330 & 0.199 & \cellcolor{gray!80}0.349 & 0.193 & -0.015 & 0.019 & -0.036 & 0.144 & -0.158 \\ 
  Carson '16 & \cellcolor{gray!30}-0.322 & -0.156 & -0.089 & 1.000 & 0.156 & -0.151 & 0.006 & -0.018 & 0.011 & -0.077 & -0.051 & -0.030 & 0.038 \\ 
  Moore '17 & 0.156 & 0.118 & \cellcolor{gray!30}-0.330 & 0.156 & 1.000 & \cellcolor{gray!30}-0.354 & \cellcolor{gray!60}-0.462 & \cellcolor{gray!30}-0.208 & -0.024 & 0.043 & -0.099 & 0.033 & 0.074 \\ 
  Strange '17 & -0.063 & -0.064 & 0.199 & -0.151 & \cellcolor{gray!30}-0.354 & 1.000 & -0.112 & 0.071 & 0.062 & -0.030 & -0.120 & 0.124 & -0.063 \\ 
  Brooks '17 & \cellcolor{gray!30}-0.277 & -0.046 & \cellcolor{gray!80}0.349 & 0.006 & \cellcolor{gray!60}-0.462 & -0.112 & 1.000 & \cellcolor{gray!80}0.252 & 0.001 & -0.110 & \cellcolor{gray!80}0.321 & \cellcolor{gray!30}-0.223 & -0.031 \\ 
  Sessions '20 & -0.175 & -0.018 & 0.193 & -0.018 & \cellcolor{gray!30}-0.208 & 0.071 & \cellcolor{gray!80}0.252 & 1.000 & \cellcolor{gray!60}-0.415 & \cellcolor{gray!30}-0.228 & 0.025 & 0.046 & -0.074 \\ 
  Tuberville '20 & 0.012 & 0.016 & -0.015 & 0.011 & -0.024 & 0.062 & 0.001 & \cellcolor{gray!60}-0.415 & 1.000 & \cellcolor{gray!60}-0.615 & -0.001 & -0.069 & 0.081 \\ 
  Bryne '20 & 0.085 & -0.019 & 0.019 & -0.077 & 0.043 & -0.030 & -0.110 & \cellcolor{gray!30}-0.228 & \cellcolor{gray!60}-0.615 & 1.000 & 0.012 & 0.070 & -0.068 \\ 
  Brooks '22 & -0.039 & 0.149 & -0.036 & -0.051 & -0.099 & -0.120 & \cellcolor{gray!80}0.321 & 0.025 & -0.001 & 0.012 & 1.000 & \cellcolor{gray!60}-0.629 & -0.182 \\ 
  Britt '22 & -0.042 & -0.075 & 0.144 & -0.030 & 0.033 & 0.124 & \cellcolor{gray!30}-0.223 & 0.046 & -0.069 & 0.070 & \cellcolor{gray!60}-0.629 & 1.000 & \cellcolor{gray!60}-0.548 \\ 
  Durant '22 & 0.135 & -0.028 & -0.158 & 0.038 & 0.074 & -0.063 & -0.031 & -0.074 & 0.081 & -0.068 & -0.182 & \cellcolor{gray!60}-0.548 & 1.000 \\ 
   \hline
\end{tabular}
}
\caption{Correlations of vote shares in Republican primaries from all Alabama precincts (n=1768-2064).} 
\label{t:al:gop}
\end{table}
